import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '@/views/user/Login.vue' // 引入你的组件
import GptMessage from '@/views/message/index'

Vue.use(VueRouter)

const routes = [
    {
        path: '/login',
        name: 'login',
        component: login
    },
    {
        path: '/',
        name: 'home',
        component: GptMessage

    },


]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
